<template>
  <div>
    <router-view
      v-if="$route.meta.keep"
      @getid="getid"
      :id="id"
      @getname="getname"
      @gettype="gettype"
      :cartoonname="cartoonname"
      :cartoontype="cartoontype"
      @getcomicname="getcomicname"
      :comicname="comicname"
      @getcatanewid="getcatanewid"
      :catanewid="catanewid"
      @getloginid="getloginid"
      :loginid="loginid"
      
    ></router-view>

    <router-view
      v-if="!$route.meta.keep"
      @getid="getid"
      :id="id"
      @getname="getname"
      @gettype="gettype"
      :cartoonname="cartoonname"
      :cartoontype="cartoontype"
      @getcomicname="getcomicname"
      :comicname="comicname"
      @getcatanewid="getcatanewid"
      :catanewid="catanewid"
      @getloginid="getloginid"
      :loginid="loginid"
      
    ></router-view>
  </div>
</template>
<script>
export default {
  data() {
    return {
      id: "",
      cartoonname: "", //分类名
      cartoontype: "",
      comicname: "", //漫画名
      catanewid: null,
      loginid: "",
      chapterlist: "",
      chapter_newid: "",
      datalist: "",
      catanewlist:''
    };
  },
  created() {},
  methods: {
    getid(id) {
      this.id = id;
    },
    getname(name) {
      this.cartoonname = name;
      console.log(this.cartoonname);
    },
    gettype(type) {
      this.cartoontype = type;
      console.log(this.cartoontype);
    },
    getcomicname(name) {
      this.comicname = name;
    },
    getcatanewid(id) {
      this.catanewid = id;
    },
    getloginid(id) {
      this.loginid = id;
    },
   
  },
};
</script>
<style>
</style>
